package com.gimi.cloud.jimi.dto.product;

import com.gimi.cloud.jimi.dto.base.BaseDTO;
import com.gimi.cloud.jimi.dto.order.OrderDTO;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * 商品说明保障DTO
 * @auther loongs
 * @date 2018/1/29  14:40
 */
public class SecurityInstructionsDTO extends BaseDTO{

    @NotNull(message = "不能为空",groups = {SecurityInstructionsSingle.class,DelSecurityInstructions.class,EditSecurityInstructions.class})
    private Integer id;
    /**
     * 说明类别,1->买断须知,2->售后无忧,3->收货须知,4-->其他
     */
    @NotNull(message = "说明类型不能为空",groups = {AddSecurityInstructions.class,EditSecurityInstructions.class})
    private Integer type;
    /**
     * 位置序号
     */
    @NotNull(message = "位置序列不能为空",groups = {AddSecurityInstructions.class,EditSecurityInstructions.class})
    private Integer sort;
    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空",groups = {AddSecurityInstructions.class,EditSecurityInstructions.class})
    private String title;
    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空",groups = {AddSecurityInstructions.class,EditSecurityInstructions.class})
    private String coment;
    /**
     * 图片链接
     */
    @NotBlank(message = "图片链接不能为空",groups = {AddSecurityInstructions.class,EditSecurityInstructions.class})
    private String imgUrl;
    /**
     * 商品有关字段（预留）
     */
    private String prodId;

    //当前页
    @NotNull(message = "当前页不能为空",groups = {SecurityInstructionsPageList.class})
    private Integer currentPage;
    //一页展示多少条数据
    @NotNull(message = "页容量不能为空",groups = {SecurityInstructionsPageList.class})
    private Integer pageSize;

    public interface SecurityInstructionsPageList{

    }
    public interface SecurityInstructionsSingle{

    }
    public interface AddSecurityInstructions{

    }
    public interface DelSecurityInstructions{

    }
    public interface EditSecurityInstructions{

    }
    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getComent() {
        return coment;
    }

    public void setComent(String coment) {
        this.coment = coment;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getProdId() {
        return prodId;
    }

    public void setProdId(String prodId) {
        this.prodId = prodId;
    }
}
